package day12.hmoework20;

/**
 * 人物资料类
 */
public class Data {
    private String name;
    private int level;
    public Data(){}
    public Data(String name,int level){
        this.name = name;
        this.level = level;
    }
    /** 自我介绍 */
    public void selfIntroduce(){
        System.out.println("我是" + this.level + "的" + name + "我可以");
    }
    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name = name;
    }
    public int getLevel(){
        return level;
    }
    public void setLevel(int level){
        this.level = level;
    }
}
